import request from '@/utils/request'

// 查询管理费阶段列表
export function listFundManagementPhase(query) {
  return request({
    url: '/managementPhase/fundManagementPhase/list',
    method: 'get',
    params: query
  })
}

// 查询管理费阶段列表
export function getInitFundPhaseList(query) {
  return request({
    url: '/managementPhase/fundManagementPhase/getFundPhaseList',
    method: 'get',
    params: query
  })
}

// 查询管理费阶段详细
export function getFundManagementPhase(id) {
  return request({
    url: '/managementPhase/fundManagementPhase/' + id,
    method: 'get'
  })
}
// 根据基金ID获取出资人列表（费率）
export function getFundInvestorListByFundId(fundId) {
  return request({
    url: '/managementPhaseInvestor/fundManagementPhaseInvestor/getFundInvestorListByFundId/' + fundId,
    method: 'get'
  })
}

// 保存管理费阶段
export function saveFundManagementPhase(data) {
  return request({
    url: '/managementPhase/fundManagementPhase/save',
    method: 'post',
    data: data
  })
}

// 删除管理费阶段
export function delFundManagementPhase(id) {
  return request({
    url: '/managementPhase/fundManagementPhase/' + id,
    method: 'delete'
  })
}

// 导出管理费阶段
export function exportFundManagementPhase(query) {
  return request({
    url: '/managementPhase/fundManagementPhase/export',
    method: 'get',
    params: query
  })
}
